﻿Imports ML.Framework.Collections

Public Class AudioFileCollection
    Inherits MediaFileCollection(Of IAudioMediaFile)

    Public Sub New(ByVal isReadonly As Boolean, ByVal items As IEnumerable(Of IAudioMediaFile))
        MyBase.New(isReadonly, items)
    End Sub

    Public Sub New()
        MyBase.New()
    End Sub

    Public Sub SortByTrackNumber(Optional ByVal Direction As SortDirection = SortDirection.Asc)
        MyBase.SortBy(New SortCriteria(Of IAudioMediaFile)(New AudioFileTrackNumberComparer, Direction))
    End Sub
End Class
